<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<div class="table-responsive">
    <table class="table table-bordered">
        <thead>
        <tr>
            <th class="text-center"><div class="table-first-id">ID</div></th>
            <th class="text-center" width="10%">结算时间</th>
            <th class="text-center" width="15%">结算人</th>
            <th class="text-center" width="10%">类型</th>
            <th class="text-center" width="10%">结算期数</th>
            <th class="text-center" width="10%">结算金额</th>
            <th class="text-center" width="10%">结算规则</th>
            <th class="text-center" width="10%">结算来源</th>
            <th class="text-center" width="10%">结算状态</th>
            <th class="text-center" width="10%">操作</th>
        </tr>
        </thead>
    </table>
    <div class="J_V_tabContent table-xScrollWrap">
        <table class="table table-bordered table-hover table-xs-content">
            <tbody>
            <tr class="jqgfirstrow" role="row">
                <th class="text-center"><div class="table-first-id">&nbsp;</div></th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="15%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
            </tr>
            <tr th:if="${#lists.isEmpty(dataMap['list'])}">
                <td colspan="10" class="text-center">
                    <div class="noDataTipsBox">
                        <p><span class="c-4e fs16">亲，还没有数据~~~</span></p>
                    </div>
                </td>
            </tr>
            <tr th:if="!${#lists.isEmpty(dataMap['list'])}" th:each="agentSettlement : ${dataMap['list']}" th:attr="data-id=${agentSettlement['id']}">
                <td class="text-center" th:text="${agentSettlement['id']}"></td>
                <td class="text-center" th:text="${#strings.substring(agentSettlement['createTime'],0,16)}"></td>
                <td class="text-center" th:text="${agentSettlement['agentUser']['agentUserName']}"></td>
                <td class="text-center" th:text="${agentSettlement['agentUser']['userType']}==1?'一级推广员':'二级推广员'"></td>
                <td class="text-center" th:text="${agentSettlement['cycleNum']}"></td>
                <td class="text-center" th:text="${agentSettlement['balancePrice']}"></td>
                <!-- 结算规则 -->
                <td class="text-center" th:if="${agentSettlement['settType']}==1">随时结</td>
                <td class="text-center" th:if="${agentSettlement['settType']}==2">月结</td>
                <td class="text-center" th:if="${agentSettlement['settType']}==3">年结</td>
                <!-- 结算规则 -->
                <td class="text-center" th:text="${agentSettlement['settlementFrom']} == 1?'H5端':'APP端'"></td>
                <td class="text-center" th:text="${agentSettlement['status']} == 1?'未结算':'已结算'"></td>
                <td class="text-center" data-icon>
                    <a th:href="@{/admin/agent/settlement/agentSettlementInfo?agentSettlementId={agentSettlementId}(agentSettlementId=${agentSettlement['id']})}" class="c-master fs14" data-toggle="tooltip" data-placement="bottom" data-original-title="查看">
                        <i class="fa fa-eye"></i>
                    </a>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <!-- 分页，开始 -->
    <div data-th-replace="layout/adminPage"></div>
    <!-- 分页，结束 -->
</div>
</html>